module.exports = {
	appId: '__UNI__9A975D7',
	defaultChpaters: ['basic-fingering', 'chinese-poems', 'articles-cn', 'articles-en', 'en-words'],
	chapterNameSplitStr: '++group++',
	config: async function() {
		const db = uniCloud.databaseForJQL();
		// 获取全局配置
		const { data: config } = await db.collection('a-dz-config').where("disabled==false").get();
		if (config.length) {
			return config[0]
		} else {
			throw new Error('config无配置！')
		}
	}
}